Repository navigation
gh-132113: Make EnvironmentVarGuard thread safe - #132128
Closed
srinivasreddy wants to merge 6 commits into
Closed
srinivasreddy wants to merge 6 commits into
srinivasreddy wants to merge 6 commits into
Conversation
Contributor
|
Looks related to #132113 - can you add the issue number to the title? edit: re "Please do not review yet", you can mark this PR as a draft by clicking the "Convert to draft" button under "Reviewers" in the right-hand column |
EnvironmentVarGuard thread safeEnvironmentVarGuard thread safe
srinivasreddy
marked this pull request as draft
April 5, 2025 14:39
srinivasreddy
force-pushed
the
thread_safe_env_var_guard
branch
from
April 5, 2025 18:43
fbe6202 to
a8a295f
Compare
srinivasreddy
marked this pull request as ready for review
April 5, 2025 18:46
Contributor
|
Could you add a news entry? thanks! |
Member
|
Can you add a test please? and/or confirm that the reproducer given on the issue is fixed? |
picnixz
reviewed
Apr 7, 2025
| for v in linked: | ||
| self.assertIsInstance(v, int) | ||
|
|
||
| def test_threadsafe_environmentvarguard(self): |
Member
There was a problem hiding this comment.
This test should be executed more than once. I think, so I would suggest doing something like that (when I executed the script in my terminal, I needed more than one script execution to see the issue)
def test_threadsafe_environmentvarguard(self):
for _ in range(100):
self._test_threadsafe_environmentvarguard()
def _test_threadsafe_environmentvarguard(self):
...
Member
|
Following Serhiy's explanation and considering I actually didn't think enough about this, I closed the issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test.support.os_helper.EnvironmentVarGuardis not thread safe #132113